function my_addColorbarTitle(Text,opt)
% my_addColorbarTitle(TitleText)
% ------------------------------
% Discription:add title or unit to current colorbar
% Input:
%	TitleText: string, or char list, text to show
% Output: None
%
% Author: sid chen (cnqdcyq@163.com)
% Date: 2022/2/10
% Log:
%	2022/2/10 ver1.0 create
	arguments
		Text 
		opt.Interpreter = 'latex'
		opt.FontSize = 14
	end

	% get handle of colorbar
	h_colorbar = get(ancestor(gca,'axes'),'Colorbar');
	% set title or unit
	title(h_colorbar,Text,...
		'Interpreter',opt.Interpreter,...
		'FontSize',opt.FontSize);
end
